package com.googlecode.milib.dbg {
	
	public dynamic class GlobalLogger {
		
		static private var instance:GlobalLogger;		//static private var mldbgmain:Object;
		static protected var dbg:Object;

		public function GlobalLogger(access:Private) {
			
		}
		
		static public function log(text:String):void {
			if(!dbg){ return; }
			dbg.log(text);
		}
		
		static public function logv(name:String, value:*=null):void {
			if(!dbg){ return; }
			dbg.logv(name, value);
		}
		
		static private function getInstance():GlobalLogger {
			if(instance) { return instance; }
			else{ instance=new GlobalLogger(null); return instance; }
		}
		
		public static function setupMLDBG(mldbgmainInstance:Object/*MLDBGMain*/):void {
			dbg=mldbgmainInstance.getDebugService(getInstance());
		}
		
	}
}
internal class Private {}